/*
 * XML Type:  Tax1098RequestMessageSetV1
 * Namespace: http://ofx.net/types/2003/04
 * Java type: net.ofx.types.x2003.x04.Tax1098RequestMessageSetV1
 *
 * Automatically generated - do not modify.
 */
package net.ofx.types.x2003.x04.impl;
/**
 * An XML Tax1098RequestMessageSetV1(@http://ofx.net/types/2003/04).
 *
 * This is a complex type.
 */
public class Tax1098RequestMessageSetV1Impl extends net.ofx.types.x2003.x04.impl.AbstractRequestMessageSetImpl implements net.ofx.types.x2003.x04.Tax1098RequestMessageSetV1
{
    
    public Tax1098RequestMessageSetV1Impl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName TAX1098TRNRQ$0 = 
        new javax.xml.namespace.QName("", "TAX1098TRNRQ");
    
    
    /**
     * Gets array of all "TAX1098TRNRQ" elements
     */
    public net.ofx.types.x2003.x04.Tax1098TransactionRequest[] getTAX1098TRNRQArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            java.util.List targetList = new java.util.ArrayList();
            get_store().find_all_element_users(TAX1098TRNRQ$0, targetList);
            net.ofx.types.x2003.x04.Tax1098TransactionRequest[] result = new net.ofx.types.x2003.x04.Tax1098TransactionRequest[targetList.size()];
            targetList.toArray(result);
            return result;
        }
    }
    
    /**
     * Gets ith "TAX1098TRNRQ" element
     */
    public net.ofx.types.x2003.x04.Tax1098TransactionRequest getTAX1098TRNRQArray(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.Tax1098TransactionRequest target = null;
            target = (net.ofx.types.x2003.x04.Tax1098TransactionRequest)get_store().find_element_user(TAX1098TRNRQ$0, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            return target;
        }
    }
    
    /**
     * Returns number of "TAX1098TRNRQ" element
     */
    public int sizeOfTAX1098TRNRQArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(TAX1098TRNRQ$0);
        }
    }
    
    /**
     * Sets array of all "TAX1098TRNRQ" element
     */
    public void setTAX1098TRNRQArray(net.ofx.types.x2003.x04.Tax1098TransactionRequest[] tax1098TRNRQArray)
    {
        synchronized (monitor())
        {
            check_orphaned();
            arraySetterHelper(tax1098TRNRQArray, TAX1098TRNRQ$0);
        }
    }
    
    /**
     * Sets ith "TAX1098TRNRQ" element
     */
    public void setTAX1098TRNRQArray(int i, net.ofx.types.x2003.x04.Tax1098TransactionRequest tax1098TRNRQ)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.Tax1098TransactionRequest target = null;
            target = (net.ofx.types.x2003.x04.Tax1098TransactionRequest)get_store().find_element_user(TAX1098TRNRQ$0, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            target.set(tax1098TRNRQ);
        }
    }
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "TAX1098TRNRQ" element
     */
    public net.ofx.types.x2003.x04.Tax1098TransactionRequest insertNewTAX1098TRNRQ(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.Tax1098TransactionRequest target = null;
            target = (net.ofx.types.x2003.x04.Tax1098TransactionRequest)get_store().insert_element_user(TAX1098TRNRQ$0, i);
            return target;
        }
    }
    
    /**
     * Appends and returns a new empty value (as xml) as the last "TAX1098TRNRQ" element
     */
    public net.ofx.types.x2003.x04.Tax1098TransactionRequest addNewTAX1098TRNRQ()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.Tax1098TransactionRequest target = null;
            target = (net.ofx.types.x2003.x04.Tax1098TransactionRequest)get_store().add_element_user(TAX1098TRNRQ$0);
            return target;
        }
    }
    
    /**
     * Removes the ith "TAX1098TRNRQ" element
     */
    public void removeTAX1098TRNRQ(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(TAX1098TRNRQ$0, i);
        }
    }
}
